package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: Like
 * Description:点赞表
 * date: 2020/8/28 0028 15:30:16
 * <p>
 * lid	    int	            主键，自增	    编号
 * likeDate	datetime	    非空	            点赞时间
 * uid	    varchar(255)	外键user表	    点赞用户id
 * mid	    int	            外键microblog表	微博编号
 *
 * @author BaiMo
 * @since JDK 1.8
 */
public class Like implements Serializable {
    private int lid;//编号
    private String likeDate;//点赞时间
    private User user;//点赞用户
    private MicroBlog microBlog;//微博编号

    public Like(int lid, String likeDate, User user, MicroBlog microBlog) {
        this.lid = lid;
        this.likeDate = likeDate;
        this.user = user;
        this.microBlog = microBlog;
    }

    public Like() {
    }

    @Override
    public String toString() {
        return "Like{" +
                "lid=" + lid +
                ", likeDate='" + likeDate + '\'' +
                ", user=" + user +
                ", microBlog=" + microBlog +
                '}';
    }

    public int getLid() {
        return lid;
    }

    public void setLid(int lid) {
        this.lid = lid;
    }

    public String getLikeDate() {
        return likeDate;
    }

    public void setLikeDate(String likeDate) {
        this.likeDate = likeDate;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public MicroBlog getMicroBlog() {
        return microBlog;
    }

    public void setMicroBlog(MicroBlog microBlog) {
        this.microBlog = microBlog;
    }
}
